\(\int \frac {a c+b c x^2}{(a+b x^2)^2} \, dx\) [130]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [B] (verification not implemented)
   Maxima [A] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 20, antiderivative size = 25 \[ \int \frac {a c+b c x^2}{\left (a+b x^2\right )^2} \, dx=\frac {c \arctan \left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b}} \]

[Out]

c*arctan(x*b^(1/2)/a^(1/2))/a^(1/2)/b^(1/2)

Rubi [A] (verified)

Time = 0.01 (sec) , antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {21, 211} \[ \int \frac {a c+b c x^2}{\left (a+b x^2\right )^2} \, dx=\frac {c \arctan \left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b}} \]

[In]

Int[(a*c + b*c*x^2)/(a + b*x^2)^2,x]

[Out]

(c*ArcTan[(Sqrt[b]*x)/Sqrt[a]])/(Sqrt[a]*Sqrt[b])

Rule 21

Int[(u_.)*((a_) + (b_.)*(v_))^(m_.)*((c_) + (d_.)*(v_))^(n_.), x_Symbol] :> Dist[(b/d)^m, Int[u*(c + d*v)^(m +
 n), x], x] /; FreeQ[{a, b, c, d, n}, x] && EqQ[b*c - a*d, 0] && IntegerQ[m] && ( !IntegerQ[n] || SimplerQ[c +
 d*x, a + b*x])

Rule 211

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]/a)*ArcTan[x/Rt[a/b, 2]], x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rubi steps \begin{align*} \text {integral}& = c \int \frac {1}{a+b x^2} \, dx \\ & = \frac {c \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b}} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.00 (sec) , antiderivative size = 25, normalized size of antiderivative = 1.00 \[ \int \frac {a c+b c x^2}{\left (a+b x^2\right )^2} \, dx=\frac {c \arctan \left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b}} \]

[In]

Integrate[(a*c + b*c*x^2)/(a + b*x^2)^2,x]

[Out]

(c*ArcTan[(Sqrt[b]*x)/Sqrt[a]])/(Sqrt[a]*Sqrt[b])

Maple [A] (verified)

Time = 2.53 (sec) , antiderivative size = 17, normalized size of antiderivative = 0.68

method result size
default \(\frac {c \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {a b}}\) \(17\)
risch \(-\frac {c \ln \left (b x +\sqrt {-a b}\right )}{2 \sqrt {-a b}}+\frac {c \ln \left (-b x +\sqrt {-a b}\right )}{2 \sqrt {-a b}}\) \(43\)

[In]

int((b*c*x^2+a*c)/(b*x^2+a)^2,x,method=_RETURNVERBOSE)

[Out]

c/(a*b)^(1/2)*arctan(b*x/(a*b)^(1/2))

Fricas [A] (verification not implemented)

none

Time = 0.28 (sec) , antiderivative size = 69, normalized size of antiderivative = 2.76 \[ \int \frac {a c+b c x^2}{\left (a+b x^2\right )^2} \, dx=\left [-\frac {\sqrt {-a b} c \log \left (\frac {b x^{2} - 2 \, \sqrt {-a b} x - a}{b x^{2} + a}\right )}{2 \, a b}, \frac {\sqrt {a b} c \arctan \left (\frac {\sqrt {a b} x}{a}\right )}{a b}\right ] \]

[In]

integrate((b*c*x^2+a*c)/(b*x^2+a)^2,x, algorithm="fricas")

[Out]

[-1/2*sqrt(-a*b)*c*log((b*x^2 - 2*sqrt(-a*b)*x - a)/(b*x^2 + a))/(a*b), sqrt(a*b)*c*arctan(sqrt(a*b)*x/a)/(a*b
)]

Sympy [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 54 vs. \(2 (24) = 48\).

Time = 0.06 (sec) , antiderivative size = 54, normalized size of antiderivative = 2.16 \[ \int \frac {a c+b c x^2}{\left (a+b x^2\right )^2} \, dx=c \left (- \frac {\sqrt {- \frac {1}{a b}} \log {\left (- a \sqrt {- \frac {1}{a b}} + x \right )}}{2} + \frac {\sqrt {- \frac {1}{a b}} \log {\left (a \sqrt {- \frac {1}{a b}} + x \right )}}{2}\right ) \]

[In]

integrate((b*c*x**2+a*c)/(b*x**2+a)**2,x)

[Out]

c*(-sqrt(-1/(a*b))*log(-a*sqrt(-1/(a*b)) + x)/2 + sqrt(-1/(a*b))*log(a*sqrt(-1/(a*b)) + x)/2)

Maxima [A] (verification not implemented)

none

Time = 0.27 (sec) , antiderivative size = 16, normalized size of antiderivative = 0.64 \[ \int \frac {a c+b c x^2}{\left (a+b x^2\right )^2} \, dx=\frac {c \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {a b}} \]

[In]

integrate((b*c*x^2+a*c)/(b*x^2+a)^2,x, algorithm="maxima")

[Out]

c*arctan(b*x/sqrt(a*b))/sqrt(a*b)

Giac [A] (verification not implemented)

none

Time = 0.27 (sec) , antiderivative size = 16, normalized size of antiderivative = 0.64 \[ \int \frac {a c+b c x^2}{\left (a+b x^2\right )^2} \, dx=\frac {c \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {a b}} \]

[In]

integrate((b*c*x^2+a*c)/(b*x^2+a)^2,x, algorithm="giac")

[Out]

c*arctan(b*x/sqrt(a*b))/sqrt(a*b)

Mupad [B] (verification not implemented)

Time = 5.15 (sec) , antiderivative size = 17, normalized size of antiderivative = 0.68 \[ \int \frac {a c+b c x^2}{\left (a+b x^2\right )^2} \, dx=\frac {c\,\mathrm {atan}\left (\frac {\sqrt {b}\,x}{\sqrt {a}}\right )}{\sqrt {a}\,\sqrt {b}} \]

[In]

int((a*c + b*c*x^2)/(a + b*x^2)^2,x)

[Out]

(c*atan((b^(1/2)*x)/a^(1/2)))/(a^(1/2)*b^(1/2))